<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

defined('IN_ADMIN') or die('Hacking Attempt!');

func::isLogin();
mysql::begin(0);

$sTable = 'inventory';

if(isset($_GET['id']) && is_numeric($_GET['id'])){
    $iInventoryId = $_GET['id'];
    $iIdDeleteInventory = mysql::deleteSql($sTable, 'inventoryId', $iInventoryId);
    if($iIdDeleteInventory)
        func::redirect(func::makeUrl ('inventory', 'list'));
}
?>
